package com.hlk.singleton;

import java.util.Base64;

/**
 * @author hlk
 * @version 1.0
 * @date 2020-11-26 10:20
 */
public enum EnumSingleton {
    INSTANCE {
        @Override
        protected void printTest() {
            System.out.println("枚举单例测试");
        }
    };

    protected abstract void printTest();

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumSingleton getInstance() {
        return INSTANCE;
    }

}
